package com.snoob.baseFeign.service.serviceAdmin;

import com.snoob.springcloudalibaba.pipleline.qo.SelectSysUserQo;
import com.snoob.springcloudalibaba.pipleline.vo.SysUserVoRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @描述：基于系统用户的远程调用
 * @作者：lixing_java@163.com
 * @时间：2022/8/14 20:17
 */
/*
 * value值为服务名称：spring:application:name
 * path值为上下文名称开头：server:servlet:context-path
 */
@FeignClient(value="serviceAdmin", path = "admin/sysUser")
public interface ServiceAdminUserFeign {
    /** 根据账号或者手机号码查询系统用户 */
    @PostMapping("selectSysUserByAccountOrPhone")
    SysUserVoRes selectSysUserByAccountOrPhone(@RequestBody SelectSysUserQo qo);
}
